package sc.common.test.hopper.handler.client;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.MessageEvent;

import sc.common.test.TestUtil;
import sc.common.test.hopper.handler.MyHandler;

public class MyClientHandler extends MyHandler {
	
	
	
	public MyClientHandler(TestUtil tu) {
		super(tu);
	}

	@Override
	public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
			throws Exception {
		TU.p(e.getMessage());
	}

	@Override
	public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)
			throws Exception {
		super.channelOpen(ctx, e);
//		channels.add(e.getChannel());
	}
}
